package cn.z2huo.productcenter.productcatalog.app.redis;

import cn.z2huo.productcenter.jackson.RedisJsonMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>用于缓存的 Jackson 配置
 *
 * @author z2huo
 */
@Configuration
public class RedisJacksonConfig {

    @Bean("redisJsonMapper")
    public JsonMapper redisJsonMapper() {
        return RedisJsonMapper.INSTANCE;
    }

}
